package com.ctgu.j08.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctgu.j08.vo.Device;

import java.util.List;

public interface DeviceMapper extends BaseMapper<Device> {
    int deleteByPrimaryKey(Integer deId);

    int insert(Device record);

    int insertSelective(Device record);

    Device selectByPrimaryKey(Integer deId);

    int updateByPrimaryKeySelective(Device record);

    int updateByPrimaryKey(Device record);

    List<Device> getByDeviceName(String deName);

    List<Device> getAllDevice();

    int updateStatusToNo(Integer deId);

    int updateStatusToYes(Integer deId);

    int updateStatus(Integer deId,Integer deStatus);
}